package com.sea.operate.service.impl;


import com.codecrane.core.web.BatchImportUtils;
import com.sea.operate.entity.Related;
import com.sea.operate.entity.WordClick;
import com.sea.operate.mapper.RelatedMapper;
import com.sea.operate.mapper.WordClickMapper;
import com.sea.operate.service.RelatedService;
import com.sea.operate.service.RelatedSkuService;
import com.sea.operate.service.WordClickService;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * @author 陈鸿飞
 */
@Service
public class WordClickServiceImpl implements WordClickService {

    @Autowired
    private WordClickMapper wordClickMapper;


    @Override
    public List<WordClick> findByCnd(WordClick wordClick) {
        return wordClickMapper.findByCnd(wordClick);
    }

    @Override
    public Integer save(WordClick wordClick) {
        return wordClickMapper.insert(wordClick);
    }

    @Override
    public void importWordClick(InputStream inputStream, String fileName) throws Exception {

    }

    @Override
    public WordClick findByWord(String word) {
        return wordClickMapper.findByWord(word);
    }

    @Override
    public int update(WordClick wordClick) {
        return wordClickMapper.update(wordClick);
    }
}
